package com.hb.medical_research_system.service;

import com.hb.medical_research_system.common.Results;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface FileUploadService {
    /**
     * 文件上传
     *
     * @param file
     * @return
     */
    Results upload(MultipartFile file);

    /**
     * 文件下载
     * @param name
     * @param response
     */
    Results download(String name, HttpServletResponse response);

}
